Thanks for the query
It looks like you have colitis, which explains the greenish coloured stools, pain under your rib cage
and the low grade temeprature. You will have to receive a course of antibiotics for the same, most commonly given is a combination antibiotic like ciprofloxacin
for 5 days.
However light headedness needs further work up, please visit a physician to check for your thyroid levels, EKG and blood test
I hope I was of help