Update index.js to be more complete, adding comments and examples of lifecycle events.
update comments
Merge pull request #128 from krakenjs/index-update

Update index.js to be more complete, adding comments and examples.