A low residue diet is used to decrease frequency, especially in those who have a lot of diarrhea or just too many bowel movements per day. I had a intolerance to wheat after my surgery. I eliminated all wheat from my diet for about 6 weeks and then was able to comfortably eat it again. You should be able to return to eating normally after a period of time. As you are doing, log your food intake and try and determine how it affects you. If a food is problemmatic now try it again in a few weeks.
Is your pain gas pain? If so watch your intake of carbohydrates like pasta, wheat, and carbonated beverages.