Added "errorCollection" matrix

To keep track of errors generated by each sensor at each stage.