Added dropout and other features to HMMs trainer