Updated docs for chap 4, 5, 6