Added commennts

Added comments in the code which were not given previously.