Added emailing of errors and updated getting of variables from ArrObj