added error messages to TOYProgram.pde