Write test for NewSafeWriter
Write test for API.Ok and API.Error
Write test for API.Unmarshal
Write test for Deregister
Simplify tests
Update README