I'm not sure what could be wrong with him but I hope that he feels better.
When I first got my puppy he ate purina puppy chow and I had to find a better food that he would eat, because the purina made his poop soft and stinky, he scratched etc..But once he was off of that all of those symptoms disappeared.
Welcome To Yorkie Talk