Support for buffers and added missing callbacks this commit also fixes #4.

Signed-off-by: Johny Jose <johny@playlyfe.com>