Made input file positional argument
Fixed a bug