Minor refactoring of configcontroller and setting foundation for exercise calculations