added javadoc comments to each class