Turn some documentation into doctests. Make documentation building a requirement for travis CI tests.