Thanks for using health care magic for posting your query.
I have gone through your query Iin detail.
The problem that you are having is basically an irritable bowel syndrome
Although there are various causes for this but one of the most efective treatment is to treat your anxiety
first. You may do it with medication but I would suggest you to get it done by biofeedback therapy. It is a safe therapy and has shown good therapeutic effect.
Hope I am able to help you.
Dr. Srikanth Reddy