client: Add gtk-doc annotations
client: remove certain functions

to add them to a separate file
client: coding style fixes
client: correct function declarations