clean code
modified the way tcp send / receive is handled, cleaning code
modified