Index: /trunk/FACT++/src/FilesStatisticsService.cc
===================================================================
--- /trunk/FACT++/src/FilesStatisticsService.cc	(revision 11290)
+++ /trunk/FACT++/src/FilesStatisticsService.cc	(revision 11291)
@@ -20,4 +20,5 @@
                                                                                              fCurrentFolder("."),
                                                                                              fContinueStats(true),
+                                                                                             fDebug(false),
                                                                                              fBaseSize(0),
                                                                                              fPeriodDuration(1),
@@ -80,5 +81,5 @@
 //! @param folder the path to the folder
 //
-bool FilesStatisticsService::SetCurrentFolder(string& folder)
+bool FilesStatisticsService::SetCurrentFolder(const string& folder)
 {
     fMutex.lock();
Index: /trunk/FACT++/src/FilesStatisticsService.h
===================================================================
--- /trunk/FACT++/src/FilesStatisticsService.h	(revision 11290)
+++ /trunk/FACT++/src/FilesStatisticsService.h	(revision 11291)
@@ -25,27 +25,41 @@
 {
 private:
+    ///The name of the server which created the object
     string fServerName;
+    ///The current folder being watched for free space
     string fCurrentFolder;
+    ///The boost thread used to update the service
     boost::thread fThread;
+    ///The data structure holding the stat data
     FileStatisticsData fStats;
+    ///The mutex used to make sure that the service isn't updated while changing conf.
     mutex fMutex;
+    ///the Dim service
     DimDescribedService* fService;
+    ///Bool indicating if main loop should be exited
     bool fContinueStats;
+    ///Bool indicating if debug information should be printed
     bool fDebug;
+    ///Main loop
     void UpdateService();
+    ///Returns the free space on the disk of the folder being watched (fCurrentFolder)
     long GetFreeSpace();
+    ///Returns the size on disk of a given file
     long GetFileSizeOnDisk(const string& file);
+    ///This is the total base size of all opened files
     long fBaseSize;
+    ///This is the list of all opened files. set is used to easily check for entries
     set<string> fOpenedFiles;
+    ///This is the duration, in second between two service updates. 0 means no more updates
     float fPeriodDuration;
+    ///This is the MessageImp object used for messaging
     MessageImp* fMess;
 public:
-    ///Default constructor
-//    FilesStatisticsService();
+    ///Constructor
     FilesStatisticsService(const string& serverName, MessageImp* mess);
     ///Default destructor
     ~FilesStatisticsService();
     ///Configures that current folder where files are written to
-    bool SetCurrentFolder(string& folder);
+    bool SetCurrentFolder(const string& folder);
     bool FileOpened(const string& fileName);
     void SetDebugMode(bool);
Index: /trunk/FACT++/src/datalogger.cc
===================================================================
--- /trunk/FACT++/src/datalogger.cc	(revision 11290)
+++ /trunk/FACT++/src/datalogger.cc	(revision 11291)
@@ -1696,4 +1696,6 @@
     Message(str);
 
+    fFilesStats.SetDebugMode(fDebugIsOn);
+
     return GetCurrentState();
 }
@@ -1708,5 +1710,5 @@
 int DataLogger::SetStatsPeriod(const Event& evt)
 {
-    const float backupDuration = fStatsPeriodDuration;
+/*    const float backupDuration = fStatsPeriodDuration;
 
     fStatsPeriodDuration = evt.GetFloat();
@@ -1735,5 +1737,6 @@
         Message(str);
     }
-
+*/
+    fFilesStats.SetStatPeriod(evt.GetFloat());
     return GetCurrentState();
 }
@@ -1845,4 +1848,6 @@
 
     target = givenPath;
+
+    fFilesStats.SetCurrentFolder(givenPath);
 
     return GetCurrentState();
