gluten, if a problem, can cause major problems with keeping foods down. the whole body feels horrible until it's out of the system for several days... and it can take 3 months to get it totally out after stopping eating it but i've found i feel better within the week of total avoidance.
it may have nothing to do with your problems. please keep us updated on how you're doing.