adding henry's code
Merge branch 'master' of https://github.com/foilistforever/bhmm
commited Henry's code