I have had similar problems as everyone else here. I had pain on my right side, behind the ribs. It was very tender to touch, had excessive gas and heartburn, also headache. Went to doctor and tried meds, had ultrasound done also. No luck.
I decided to try a few things on my own, and after i quit drinking coffee, lo and behold, I felt fine, no pain, no gas or heartburn, and headache was gone. I kid you not, took about a week for me after quitting the coffee. "What a relief".
All I can say is it worked for me, and if you try it, I hope it works for you. Good luck!!!