Index: /fact/tools/rootmacros/fbsl.C
===================================================================
--- /fact/tools/rootmacros/fbsl.C	(revision 12517)
+++ /fact/tools/rootmacros/fbsl.C	(revision 12518)
@@ -92,12 +92,10 @@
 	const char *datafilename 		= "path-to-datafile.fits.gz",
 	const char *drsfilename = "path-to-calibfile.drs.fits.gz",
-	const char *TextOutFileName = "./appendfile.txt",
-	const char *RootOutFileName = "./datafile.root",
 	int firstevent 			= 0, 
 	int nevents 			= -1, 
 	int firstpixel		= 0,
 	int npixel				= -1,
-	int spikeDebug = 0,
-	int searchSinglesPeaks = 0,
+	const char *TextOutFileName = "",
+	const char *RootOutFileName = "",
 	bool produceGraphic = true
 ){
@@ -174,6 +172,10 @@
     FILE *fp;
     TString fName; 
+
     fName = TextOutFileName;
-
+	if (fName.Length() != 0){
+		 cout << "saving text to " << TextOutFileName << endl;
+
+	
     fp = fopen(fName, "a+");
     fprintf( fp, "FILE: %s\n", datafilename );
@@ -197,7 +199,9 @@
 
     fclose( fp );
-
-
+	}
+	if (RootOutFileName != ""){
+		cout << "saving histograms to " << RootOutFileName << endl;
     SaveHistograms( RootOutFileName );
+	}
 		if (produceGraphic){
     	TCanvas * cMeanBsl = new TCanvas();
