Fixes to HMM to add reference padding.
Merge pull request #61 from fnothaft/hmm-padding

Fixes to HMM to add reference padding.