Thanks for the patch, I applied it, but I cannot test it myself.
The state should be modified automatically for the set commands.
For interpreting data sent by the device you have to implement a parse entry for the corresponding Zwave-Class, where the key in the hash is the data sent by the device (in hex, with regexps) and the value of this key is of the form <readingname>:<readingvalue>. If the <readingname> is state, than the state of the device will be set.