State monitoring motor controller built. Not tested. Changed signal variables in state.