Config system added
Config checking added
Logging mode updated