Add javadoc comments to both source files