added a debugging option on the tcp client
better debgugging and clear errors
added fixed 8kb window size when reading from the socket