Added bug fixes:
line 383 - array was not point correctly to string value. Fixed.
line 754 - bad index value for array. Fixed.
line 950 - using old script variable. Updated to correct variable to point to correct value.