added javadocs to communication classes