Added unit tests, event manager & more
Removed old files