Yup. Looks to me like a deal between husband and wife to extort some moolah from the rich Dr but he figured out their scheme.
Oh, I get it now. The husband was essentially pimping her out and the ho was going to blackmail this guy. Is that the gist of it?