Update __getattr__ example.

Also, make some cosmetic changes to the documentation.