Stopping the program and outputing the correct page is easy  now.

The program flow is easier to follow.  Before, checking stuff and if the
checks failed it was difficult to follow what happened next.  Now it is
easier.  Look for calls to check_stop where the global value for errors
is 1.   Brilliant update!