Added socket information and modified handle input and output port functions
Added examples. Changed code in comm.go