add debug server example
add copyright info to debug client
code style and documentation
add debug header to integration tests
fix memory leak when a connection fails references #323