Removed outdated __repr__() from SocketPort.
Made some small changes to sockets.