finished exercise. recv and send implemented. Some errorhandling implemented.