Lots of little fixes, plus chapter 9 example.

This particular example is for experimenting with changes to the distortion shader, so I want to keep this as a local member, meaning that if I change the file the changes are picked up at runtime.