Javadoc.

It is now more verbose.
Added documentation.