refactored the Z-Wave communication code
Now the Action isn't saved as a variable, but is sent as a parameter directly to the DoDeviceOperation method.  This saves a few lines and also makes the code a bit more readable.