Moved files to lib folder
Created concept of event and created example to showcase it
Moved examples to examples folder
Updated examples and simplified require process