Recognize and display I/O and syntax errors
Print file reports as they are produced; moved some code around