Revision of 4.x guide

I was studying the guide myself and saw a few typos and had to change a few things to make the code compile. I thought I'd contribute.

I revised just the first few section and try this Pull Request to see how it will be welcomed.