Add license header and class-level javadoc.