refactor code
removed unwanted comments and
added comments