basic latex functionality

made changes @mekarpeles suggested, got pdflatex to render the latex template. the template needs to be edited a lot, and some excess files need to be deleted after running pdflatex--these changes will be in my next pull request.