Changed documentation and added R markdown file (Rmd)