added comments

added comments as required by the assignment