added sample to readme
bit of refactoring. more configurable