Basic javadoc.

Initial version, more work is required.
Merge pull request #1 from rinmalavi/doc

Basic javadoc.