added a temp field and a sequence of int field to be used for gibbs
sampling
new methods to hide labels and to restore them
minor refactoring