Add initial R markdown file and moved all code into a single script file.