update readme example; refactoring