Text this: Maximum Demand Reduction (MDRed) modelling using MATLAB Stateflow