code cleanup and introduction of a config.php for the controller