fixed error and added comments