made .md file from .Rmd file
made .html file from .Rmd file using knit2html
added figure directory
changed completely over to dplyr commands
used group_by in a better way