reformatted NBTUtil class