Fix the sphinx doc template for classes
Ignore automatically generated doc files
Fix some bugs in docstrings and documentation for numpydoc