added comments to all forms of code.