Added command line parsing
Added file parsing section to parse the input, adjust the time and write to output