minor bug fixing and error reporting
Merge branch 'master' of https://github.com/ldarren/pico-client