added r code per grading requirements
added r code
Merge pull request #1 from bschousek/master

merge master into gh