First working version of TCP-console
Cleanup