Add reading/writing of NBT