In a VBA macro one can add commends to describe the function of e.g. a sub routine. See example below.

[VBA]
Sub example()

'the below loop does ...

for i = 1 to 10

'imagine here your script

next i

End Sub
[/VBA]

Is it possible to add similar commends to a custom UI file?