Further polish on networking

almost working now. Need to polish a bit on sending stuff