cleaning and javadoc for networking classes