Logging, Config fixing, Config Gui

Many many changes. Thanks, Pahimar!