Use relative imports
Prune hidden markov model code
Fix tests