Add licenses, remove unused imports