Fixing license headers and checkstyle errors