Fixed broken error messages
Added support for non programmable devices in StatemachineBuilder
Fixed missing .bind(this) in statemachinebuilder
Added statemachine for production thresholds