Re-wrote docstrings.