AB msgs: first working version for stateChange - > cmd.
Small fixes mainly.