Structural and Functional Analysis of TREX