Wrote javadocs