Basic javadoc.

Initial version, more work is required.