Added JavaDoc

Added JavaDoc comments to source files as well as javadoc target for
build.xml.