Fixed enchantments being added even if there weren't any.

Fixed name being set, even if a name wasn't specified.
Make sure we close streams.
Fixed helmet and chestplate being backwards.