Added tree stat extraction script
Now outputs run, extract and format scripts