read hmm from a file.