Fix README
Add a dev dependency
Emit events on query and error