Added the global configuration controller. Most of the bugs have been
fixed