Add example_number to "You have a NAN!!!" error to be more user friendly...

....

Also move it from cout to cerr.