Client bugfix + added --debug option to enable verbose logging.

- This is v0.1.2