DOC add docstrings.