Added comments

added comments in code to make easier to read