Wrote javadoc