Just to add to the very good advice already given, it's also worth checking when you last wormed him as this can also cause vomiting and mucous covered stools.

Hope he's better soon!