fixed couple of bugs in hmm training
some refactoring and additional checks
another bugs
fixed normalize bugs
some additional checks
removed some constraints
couple of fixes in hmm training