Fixed the doctest processing

Corrected doctest comments and Sphinx configuration so that ``make
doctest`` works correctly.