Added verbose comments to code.