commented code

added comments to code