added endErrorsFile() and limited total errors reported