Added two new events (init and contentLoaded). Fixed issues #80, #88 and #97.