cross recognition for Ts Ls and Xs completed, some things need tuning
formatted code linux style