Enhancements to hidden Markov models for gene finding and other biological applications