edit chapter 04

for some of the errata that were not applied