DWM1001-DEV-Kit - How to output TWR Data

Hello, Guys. I have the DWM1001-DEV-Kit with the PANS 2.0 Factory Image.
I am able to track the Tag with 4 Anchors and i can output the Location Data via USB (Tera Term) on my LapTop with the les /lec function. Now i have two questions:

  1. Can someone tell me where i can find the Code-section with the TWR- Calculation and the Localisaion-Algorithm? I want to comprehend the calculation.

  2. I want to output the TWR-Time Data via USB on my Laptop too. How can i do that ? Is there a function too ?

Help would be gratefull !

Best regeards,