Fixed preceedence order of default vs user config. Added getConfig()