FretAnalysis: Add some comments to help orient me

This function really needs some splitting
Port to Lens-y Chart and Chart-histogram