Added callbacks to each API function. Mandatory for closing a db connection for example.
Improved readme