First you should not be waiting long to go to the bathroom especially when pregnant you can actually cause the bladder to go (flaccid?) I for get the name but anyways the muscles go weak and u start peeing urself silly its going to happen anyways but usually the last month.
As for rib pain usually this is another thing seen later in pregnancy is baby stick there wonderful legs/feet in between the ribs and it hurts, could also be an imflammation between the ribs had one of those and it felt the same way!
Pregnancy is full of aches and pains the only time I would be worried is if the pain is so bad you cant deal with it, your bleeding cats and dogs, etc