Adds documentation.

Adds javadoc documentation.