Implemented routing system, controllers and a functions file.