improved hmmNetwork, added SpeedModel