added conditional output of round # and added exit support for invalid input files