Logging

Adds logging and several small fixes (" -> ' and drop port configuration from client)