fix bug where rerun count was not reset
Updates to error handling, added preliminary test file

- update patterns to hopefully match the entire error message
- try to make the desktop notifications show more of the useful parts of latex errors.
- add preliminary test file