ATextScreenOutput logWin = null;
if(guiMode){
logWin= new ATextScreenOutput(null, false, true);
logWin.setVisible(true);
logWin.appendAndScroll("Processing "+topFolder+"\n");
}
flatten(topFolder,topFolder);
if(guiMode){
logWin.appendAndScroll("done");
}else{