Added comments to code and a README.md