Clean up some lint warnings.

I've made some minor changes to the examples to stop the lint warnings.
You can pull it if you want.