You could try low fodmap diet. It removes most bad stuff which you later can try to introduce back to your diet one by one, and is planned for IBS patients. This way I have found that I cannot eat gluten, onions, or artificial sweeteners. My stomach has been alot silencer and in peace, even.