Adding event handlers and plugin loader
Added an example plugin