Large fixes to inverseL, some inverseR stuff