Code review by gaurav.

Comments are added for code review.
All the commente starting with // G-comments are made by me.
reference  : #14
Merge pull request #15 from innoraft/gaurav-code-review

Code review by gaurav.