Fix minor errors in code samples
Merge pull request #41 from anthonychu/minor-fixes

Fix minor errors in code samples