Add javaDoc comments to all methods.

Added the comments to allow for easier creation of unit tests.