remove unused imports, add doc