proper exception handling and positional parameters for input and output file