Rename SocketStream; create fns; fixes #1