Adding javadocs and comments in code