fixed bug in TDA_XC, now compiling and runnign