added javadoc, which is important :)