Add a couple of method naming conventions to the programming guide

Fixes #233.

I also took the liberty of doing a minor whitespace and html tag cleanup in that file since there were a lot of unbalanced tags and unused divs (in a separate commit).