Updated README.md.

Added example, and tests for the example.