added comments to code
added comments to code