Override config using an array

Allow the config to be overridden by passing a configuration array as a parameter
Merge pull request #9 from marcorivm/patch-1

Override config using an array