Wrote more javadoc.