Added some Javadoc comments.