Update to 1.7, use try-with-resources, and format.
Merge pull request #5 from daboross/patch-1

Update to 1.7, use try-with-resources, and format.