Add events and errors files
Refactoring controllers and routes