Javadoc generated.

Some code cleaning.