Added some javadoc comments.