Minor changes in script. Start setting up  the Rmd.