Add API documentation to README
Attach callback to 'disconnect' event