Replace occurrences of ARGV[0] with input_file.
Extract code into module and class.