Code review by gaurav.

Comments are added for code review.
All the commente starting with // G-comments are made by me.
reference  : #14