Added queues and more tcp functionality

Added queues and more tcp functionality