finished basic transport layer.
removed debugging output