Added command line args and the loop for generating data
Added file name argument. file output, and default stdio