Move trace record into own namespace

Adding other functions here to analyze traces