It sounds like you might be suffering from irritable bowel syndrome. The first line of treatment should be a positive change in diet. For instance, people suffering from diarrhea might want to try a low-fiber diet while people suffering from constipation probably need to increase the amount of fiber they consume. Obvious irritants should be avoided. For example, an entirely wheat-free diet may be appropriate. It is important for each person to discover which foods trigger their bouts of discomfort. It’s often a case of "trial and error” to determine which foods causes problems and which seem to be beneficial
You may also look into colon cleansing. There are several methods that you can use to cleanse the colon, such as colon hydrotherapy, colonic fasting diets, laxatives, and nutritional supplements. However, oxygen based colon cleansers are the very best method for deep-cleaning the colon and maximizing all of the benefits of colon cleansing.
I myself have been using Oxy-Powder to help with my constipation and ibs, you might want to give that a try. Good luck!