Added additional comments to code.