TSMain.cpp formatting