Broke TeX base into multiple files to prepare for conversion to template