Added numpydoc and updated docstrings.