Wrote some javadoc