Adding Javadoc documentation to the code.