Update courseProject.R

added comments to code