Refactored error handling
Unit test for run_latex
Improved tests
Testing error handling wip.
Testing error handling ready.
Testing, new version