Dat's do that from time to time. IME, if fed to much it will throw it up. My dats do that if one of my shrimp eater dat eats a silverside it will throw it up. as for the scratching, that's what dats do.
Throwing up happens once in awhile, especially if it ate too much. Scratching...how often does it do it? Mine did that from time to time, but not often. It might be parasites.
My indo was getting ich one time and scratched on everything for about a week before spots appeared. I would just raise the temp to about 84 degrees F for awhile if I were you.