added comments

good comments on the code