Changes to initialization

Change to TCPConnection constructor
Added Socket class.