Adding better javadoc code