Changed output to append
Added scripts to automate testing. Run ./my_script2 to write the output, and ./clean_trace_script to erase all output files.