Updated docstrings in core.py