use flags instead of env vars
pass the entire config
also update README
Merge pull request #25 from canaryio/flags

Flags