Fixed many NullReferenceExpections and new sockets!