Fixed HasErrors() routine to include check for ReturnCode < 0.

Added an AddMessage() method.