added javadocs to classes