added javadoc to several classes