Improve docstrings in core module