What is a unit ref? Might be a better idea to document it here or in UnitInventory class.