Implemented setDeviceName and getDeviceName
Fixed doc for setOutputState