Write some javadocs