Added a license file and removed some unused imports.