Adding proper Javadoc comments.