Adding javadoc to figures