Added side bar

- Refactored code, split accross multiple files