convert commands to array if neccessary
adds chaining and sensor origin reference
adds dummy module and sensor