Improve handling of pdflatex, now uses template file.

Don't need to create individual tex files - just pass GraphViz file into template.tex and it'll sort it out. Need to add options for eg straightedges, etc