Added input file parsing to main