Remove unused imports.
Add javadoc.