(#51) Updated to support setting the volume state value. 
Also made a few tweaks to fix #50, and tidied some of the logging.