added r script; added ruby script to call rscript and process into csv files