New base class for all controllers, new functions and file reorganization