Some minor fixes

Fixes a typo and changes example to be less "static"