Added comments to socket-wrapper and removed dependency from connection endpoint