Added writing of LaTeX temporary file
corrected f.open to f = open
Added .tex extension to LaTeX file
added literal multiple line strings
closed the file to allow pdflatex to work it's magic
Set up .journal files for record keeping