add train_hmm for training HMMs from annotated data; add  __repr__ methods to the objects