Fixed formatting
Added a boolean debug var for suppressing all the sent and received
lines sent to the logger