Refactored trace. Switched from namedTuple to TraceRecord class based on OrderedDict. Event class can add fields or modify trace record.