Added Javadoc documentation.