added config object

Fixes #4 on github