added more comments to code
added more comments to code