Merged sub error_list into sub error_check.
Added variable $CheckOnlyOne. Value is passed in via command line.  If value=0, then check all errors, else check only the error give in sub error_check
Cleaned up sub error_register.