check for connection to PHD before writing #1
Merge branch 'master' of https://github.com/tedgoddard/phdremote