Output Proper Error Codes

Modified MainPandora class to output error codes.  Will make my life
easier tracking down bugs.