Added complete javadoc.