More API documentation, fixed a typo in the docstrings.