hook up the --texoutput option
More updates to error handling.