core.py and plot.py docstrings