A bit more verbosity in the file processing

Also, error checking, and guarding against a runaway `while` loop...