added comments, cleaned client apps
added comments