Fixed something that bugged me.
Fixed a mistake in the changed example.
Merge pull request #11 from Drakekin/feature/better-examples

Changed one of the examples to conform with best practices