changed file name to a command line argument rather than hard coding it in main.rb