added comments and renamed gsim_trace.py