changed header for Rscript
modified template.py