Update example in README.md

The config is passed to the constructor