Override config using an array

Allow the config to be overridden by passing a configuration array as a parameter