Rmd Script generation implemented