Added Sphinx domains to the docstrings.