Adds better comments to frame.py