added comments to code, and initial commit