Index: /trunk/MagicSoft/Mars/mbase/MTaskList.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbase/MTaskList.cc	(revision 7684)
+++ /trunk/MagicSoft/Mars/mbase/MTaskList.cc	(revision 7685)
@@ -318,5 +318,5 @@
 // for one of the tasks
 //
-Bool_t MTaskList::AddToList(const TList &list)
+Bool_t MTaskList::AddToList(const TList &list, const char *tType)
 {
     TIter Next(&list);
@@ -330,5 +330,5 @@
         }
 
-        if (!AddToList(obj))
+        if (!AddToList(static_cast<MTask*>(obj), tType))
             return kFALSE;
     }
Index: /trunk/MagicSoft/Mars/mbase/MTaskList.h
===================================================================
--- /trunk/MagicSoft/Mars/mbase/MTaskList.h	(revision 7684)
+++ /trunk/MagicSoft/Mars/mbase/MTaskList.h	(revision 7685)
@@ -47,5 +47,5 @@
     Bool_t AddToListAfter(MTask *task, const MTask *where, const char *tType="All");
     Bool_t AddToList(MTask *task, const char *tType="All");
-    Bool_t AddToList(const TList &list);
+    Bool_t AddToList(const TList &list, const char *tType="All");
 
     void SetSerialNumber(Byte_t num);
Index: /trunk/MagicSoft/Mars/mranforest/MRanForest.cc
===================================================================
--- /trunk/MagicSoft/Mars/mranforest/MRanForest.cc	(revision 7684)
+++ /trunk/MagicSoft/Mars/mranforest/MRanForest.cc	(revision 7685)
@@ -331,5 +331,6 @@
     fDataRang.Reset(0);
 
-    if(fWeight.GetSize()!=numdata)
+    Bool_t useweights = fWeight.GetSize()==numdata;
+    if (!useweights)
     {
         fWeight.Set(numdata);
@@ -390,9 +391,10 @@
     *fLog << inf << endl;
     *fLog << "Following input for the tree growing are used:"<<endl;
+    *fLog << " Forest type     : "<<(fClassify?"classification":"regression")<<endl;
     *fLog << " Number of Trees : "<<fNumTrees<<endl;
     *fLog << " Number of Trials: "<<(fNumTry==0?tryest:fNumTry)<<(fNumTry==0?" (auto)":"")<<endl;
     *fLog << " Final Node size : "<<fNdSize<<endl;
     *fLog << " Using Grid      : "<<(fGrid.GetSize()>0?"Yes":"No")<<endl;
-    *fLog << " Using Weights   : "<<(fWeight.GetSize()>0?"Yes":"No")<<endl;
+    *fLog << " Using Weights   : "<<(useweights?"Yes":"No")<<endl;
     *fLog << " Number of Events: "<<numdata<<endl;
     *fLog << " Number of Params: "<<dim<<endl;
