Further work on implementing mode for protocols
added support for CMD_ARM and CMD_DISARM
Testing