Reorganize and section code a bit
Reorganize and section code a bit

msullivan/latexrun,msullivan/latexrun,mhoogendoorn/latexrun,temporaer/latexrun,FranzSkuffka/latexrun,apuignav/latexrun,apuignav/latexrun,aclements/latexrun,temporaer/latexrun,aclements/latexrun,mhoogendoorn/latexrun,FranzSkuffka/latexrun