Adding Javadoc documentation.