Improved the api docstrings.