Perf improvements, 0.9.4

Performance has been significantly improved without a loss of cleanliness or correctness. The book gained some new chapters too. :)