Initialize configuration default values when modules are initialialized

also, some style fixes.