added extra code from the notes through p. 303
preparing to split code base by chapter
turned more text examples into tests, fixed up stuff to play nice no matter how systems are built and loaded