Make error types public

and document them
Document NamedManagedObject protocol
Fix renamed error code
Test create method