Split files

Split tex into one file per section. Should make commit changes easier
to read. Has also sped up builds.
Merge branch 'trying-separate-files'