fixed documentation bugs for Sphinx