Docstrings for the two main public API functions