Documentation and error reporting