Remove unused imports, add license text