Fixed JSON reporting format

Added extra process termination information to report including maximum
amount of memory mapped and total wall time.
Fixed thread/process tracing code