Added a metric ton of Javadoc to the code.