Minor changes, more complicated LaTeX portion of compile function