fixed code
added comments