cleanup, efficiency

Cleaned up gibbs code a little, hopefully will be a little more
efficient now.  Also fixed a potential logical error, where the sampler
may have taken action even if a particular word didn’t exist.