Added non-truthy return values and error logging on errors
process_docs.process now tested with illegally formatted documents