Ch. 5 and other related modifications

Hi John,
One observation as below
 5.1 needs to be re-written IMHO , I found this section not clear at all and also java files seems to be have few errors and it seems flow is broken or descriptions in not in flow.

Thanks & Regards,
Vikram
The spacing is intentional for readabiliy