added some comments to client.py
added more comments