added comments explaining all the lines