added the comments and did the proper indentation
Did the indentation and added the comments