Remove unused imports, add missing javadoc entries.