R script now takes command line argument for input file