If he's refusing to eat, then you really do need to go to the vet asap. Dogs usually don't eat only when something is genuinely wrong. It sounds like he needs a fecal test anyway.
For potty training, read the sticky threads about it in this section:
General Training Questions - YorkieTalk.com Forums - Yorkshire Terrier Community