Updated for OS X, runs as expected, but you have to install X11 support, XQuartz to get it running and get rid of the message 'failed to open display ':0.0''