Some docstrings for a few core API functions