Welcome to HCM.
Most likely it is due to your weak digestion pattern and long lasting symptoms is suggestive of IBS.
You have to take care in diet.
Take more liquids like water,buttermilk,fruit juices,vegetable soups.
Be watchful for particular diet after which there is more discomfort.
Take isabgool at night time for constipation
Take rebeprazole or pentoprazole with domperidone
Take nsaid with dicyclomin to subside pain.
Enzyme preparation will be helpful to improve digestion.
Regular exercise and yoga will be helpful.
.Make some regular pattern for your food habits.
There are certain medicines for IBS,start it under guidance of your doctor.