Slightly more stable version using analytic inverse formula
Remove debug string
Add notes, pretty much all of which go nowhere