This usually is a sign that the anal glands need to be expressed. The vet usually does this, but some of us are crazy enough to do this. The glands are at 5 and 7 o-clock . they need a squeeze and a paper towel. If they are really swollen, you need to see your vet, as for the brownish vomit. ????? I don't know.