Added javadoc comments.

Added javadoc comments.
Added batch file for building and running.