added error list handling to program model

added new error list class for holding list of errors in program
expanded program model update function with update line, set error,
  and remove error functions