Improved the warnings in Exec; Now it prints 'script_name:line_number: WARNING'
Added a validity check for array indices.