Added config class, controls are now loaded from a config file.