Allow to pass config as object
Merge pull request #19 from koba04/pass-to-config-as-object

Allow to pass to constructor config as object