Updated error detection and reporting for input file formatting.