Fixes #42 example errors
Merge pull request #43 from aaronz8/patch-1

Fixes #42 example errors
add test for locals