Added getDefaultConfig function and reset config function