made the application take the inputfile location as the first argument when calling