Cleaned up some Config and Gui stuff.