Add init callback

Adding a callback to the init method so that code can call it and be notified when it completes.

Bumped version to 1.3.1