Improvements to documentation.

All exmaples included in the tests.