R file for building model and output files along R mark down file added