made some comments to code