error reporting, tests, docs