Added event dispatcher and Handlebars compiler; Updated formatting