hw1 Rcode added
add comments in the code
Update README.md

Me as a contributor
Merge pull request #1 from fredcommo/master

R code for hw1