updated lib for pg2.9+ and added setVolume and debug logs