Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7420)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7421)
@@ -54,4 +54,5 @@
    * mjtrain/MJTrainRanForest.cc:
      - added some comment
+     - adde more log output to WriteDisplay
 
    * mjtrain/MJTrainSeparation.cc:
Index: trunk/MagicSoft/Mars/mdata/MDataFormula.cc
===================================================================
--- trunk/MagicSoft/Mars/mdata/MDataFormula.cc	(revision 7420)
+++ trunk/MagicSoft/Mars/mdata/MDataFormula.cc	(revision 7421)
@@ -139,7 +139,6 @@
 
     fFormula = new TFormula;
-
-    //Must have a name otherwise all axis label disappear like a miracle
-    fFormula->SetName(fName);
+    // Must have a name otherwise all axis labels disappear like a miracle
+    fFormula->SetName(fName.IsNull()?"TFormula":fName);
 
     if (fFormula->Compile(txt))
Index: trunk/MagicSoft/Mars/mjtrain/MJTrainRanForest.cc
===================================================================
--- trunk/MagicSoft/Mars/mjtrain/MJTrainRanForest.cc	(revision 7420)
+++ trunk/MagicSoft/Mars/mjtrain/MJTrainRanForest.cc	(revision 7421)
@@ -84,6 +84,12 @@
 {
     TFile file(fname, "UPDATE");
+    if (!file.IsOpen())
+    {
+        *fLog << err << "ERROR - Couldn't open file " << fname << " for writing." << endl;
+        return kFALSE;
+    }
 
-    *fLog << inf << " - MStatusDisplay..." << flush;
+    *fLog << inf << "Wrinting to " << fname << ":" << endl;
+    *fLog << " - MStatusDisplay..." << flush;
     if (fDisplay && fDisplay->Write()<=0)
     {
