Add example llvm ir for using malloc/free. Tidy up scratch directory; improve file names; add documentation to tut*.cpp