Updating README for refactor
Updating example code