Added more comments to client. Fixed some memory leaks
Finished current commenting