Updated license headers and some javadocs.