Formatting and adding comments

Formatting and adding comments