added javadocs for networking stuff.