Remove doneErrorThreshold as a member of class Net, and make it a local
variable in main(). Add a comment to consult the wiki for examples of
VALIDATE and TRAINED code for main().