You basically can use it in 2 way.
1. You can use UnitUserData[<Your Unit>] in combination with an array. Use UnitUserData[] for the index.
2. You call the included textmacro and use $NAME$[<Your Unit>] = Value to attach First post is edited for the use of debug keyword.
---Edit---
I maybe post an example for the usage.