OK so the line that is erroring is in the unit tick(refresh) script line 3
number = string.format(fmtStr,number)
Error says "bad argument #2 to 'format'(number expected, got nil)
Also the LUA console states the following:
Warning: method getElementName is deprecated, use getElementNameByID instead
Warning: method getElementHitPoints is deprecated, use getElementHitPointsByID instead
Warning: method getElementMaxHitPoints is deprecated, use getElementMaxHitPointsByID instead
Warning: method getElementMass is deprecated, use getElementMassByID instead
Warning: method getElementType is deprecated, use getElementTypeByID instead