added a error saver class which stores catched error messages in textfiles, for later debugging
 fix