Is there anything I can take to prevent a bloated stomach, are there certain foods that cause bloating?

Maybe IBS, but... The GI tract has a very limited # of symptoms to signal its distress--nausea/vomiting, diarrhea/constipation, bloating, pain, fullness, bleeding, etc. As you know, many of these characterize ibs, but are also seen with inflammatory, infectious, ischemic, malabsorptive, and functional disorders. Directed lab work, imaging, biopsies, stool studies are appropriate in excluding non-ibs pathology.
OK. This is constipation! a hi fiber diet, 20-25 grams of fiber per day, drink 80-`100 ounces of non caffeinated, non alcoholic fluids daily and increase your fluids if you do strenuous work or exercise. Do not use harsh laxatives. Excess fiber in the face of inadequate fluids will cause bloating and constipation. Try adding a probiotic like Align or Florastor.