update readme
refactor config and allow use via require
works now from terminal/command line