fixed Warnings: remove unused import and closing jar file now. And a little cleanup for better legibility.
Merge pull request #1 from HerbertV/master

Fixed Warnings, thanks HerbertV.