Added javadoc (issue #26)