Fix 3 errors in code examples
Merge pull request #5 from ruafozy/fix-bugs

Fix 3 errors in code examples