Commented the code

Looked thru all code and added comments