Sounds somewhat like what I experience. I have insomnia as well to a degree, either that or not enough physical activity causes difficulty in going to sleep.
I have dull pain under the right rib area and it extends out to my right side. At times the feeling is located in the central area of my chest at bottom of rib area, sometimes also a little up in the right shoulder area.
My ultrasound results have shown what appears to be polyps in the gallbladder. I've done a number of other tests and basically the only discrepancy is the "polyps". Discussions with my specialist at the moment centre around the fact the gallbladder appears healthy so not to do anything for now but watch the diet and improve the diet. I am doing herbs, vitamins, etc and I've done 3 flushes now to see what I might achieve by doing those and have had varying results, over recent weeks the pain/dull ache has subsided further. But this has been now going for almost a year but originally the pain was strong and debilitating in that I didn't want to get up or sit down. It was still not like a stone attack though, not intense enough from what I've heard.
It is still unclear if it is the "polyps" ot not. I am trying to get more physical activity.