Fixes to code samples in README and HISTORY.