added comments and removed unnecessary comments