Added javadocs to several classes