Added numpydoc-style docstrings.