Fix all warnings reported by Eclipse by removing unused imports and
variables, and adding @SuppressWarnings where appropriate.