Lots of little fixes, plus chapter 9 example.

Does this definitely work when there's no Rift plugged in?