Added comments for the if else

Finished writing the comments for the document