Height is 2 because you want to store the item name and amount of items separately, (you could have them as one but you'd have to turn the amount back into number to add to it ie. int(right("berry x 3", 2)) and... anyway you want 2 columns)
CurX, CurY and CurValue are current thing in a for each loop. You see them if you look at expressions that an array has.
Also if you run in debug mode and select the array you can look at how it stores the data. it should show something like
(Berry, 3)
(Pokeball, 6)
(0,0)
(0,0)
and so on, it might help with visualizing how the array works and such.
As an aside if you didn't want a inventory limit you could use 0 width array and a push action to increase the size of the array whenever you add items