Move the examples in the docs. Enable doctests.