made config generic, added examples to readme