Fixed more warnings and using the new try-with-resource from java 7 for
resources
(http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html'
Added basic custom enchantments.
Merge pull request #5 from duckdoom5/master

Fixed more warnings and added custom enchantments support.