Your history suggests IRRITABLE BOWEL SYNDROME. it has Various types. Depending on what kind of motions you have.
Whether there is any CONSTIPATION.
It is diet and lifestyle based disease.
Next Steps
correct diet and lifestyle can solve majority of issues. most commonly junk food that is outside home food is responsible.
Health Tips
plant based diet is the ideal diet. discuss in details.