Reorganizing script into a module for processing THL XML and OCR along with the beginnings of a script to update paginations with line numbers