[misc] Added license and cleaned up unused imports.