Added some Javadocs.