Edit for additional comments

Provided comments to make the code readable and compliant to some
coding standards.
Another edit for readability

Double checked the grammar and if sentences are readable.