Updated README

Added code example with some extra comments