created error class, later use functions that work on lists of error objects to generate stats
added some test code for the error class