Update docstrings mainframe.py