Fixed command reading when running from console
Originally main() took the input file argument from the 0th arg, which is actually just the program itself. Fixed to take the 2nd arg.