Various changes to error detection and reporting.  Fixed bugs in timer1 timeout objects.