Finished internal documentation of client.py