client done, added comments to code.