Updated code samples in README.  Fixes #1.