WIP: extract code into functions #58

Closed
jlecour wants to merge 0 commits from client-functions into master

These branches are equal.