moved docstrings to frame.py, added test