My wife is 39 and 4. The pain in the ribs is from not only the baby moving, but also all of your inside stuff being pushed up to make more room for the baby. Not a lot works to ease the discomfort 100%, but try laying on your left side, or getting up and moving around a bit.