Example code cleanup

Matching Readme with example file, typo fixes.