Last-minute update: Added a new example map (cp_gorge_scrambled), fixed some simple bugs I'd overlooked, and added a bit more commenting to the code.