Improvement CodeRefactor

- Truncate Imports for haxe
- fixed behavior for one unused import.

Can inports be empty?