General tidy up and closing tags.

I think the new layout makes it a little easier to take the example code and see what is going on.