more work on rotation mapping...also fix an nbt error in inventory
read/write