Added Callback Functions

This PR adds support for callback functions on init, render and destroy.

Notes: PR includes tests to support each function.