added default config.
Updated config code