Index: trunk/MagicSoft/Cosy/main/MStarguider.cc
===================================================================
--- trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 4865)
+++ trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 4888)
@@ -658,5 +658,4 @@
                 return kTRUE;
 
-
             case IDM_kStargHistograms:
                 Toggle(fDisplay, IDM_kStargHistograms);
@@ -942,7 +941,7 @@
     TH2F h("Hist", "dX/dY", 49, -768/2-8, 768/2+8, 37, -576/2-8, 576/2+8); // 3
 
-    TH1F hmag("HistMag", "Mag", 19, 0, 100);
-    for (int i=0; i<mag.GetSize(); i++)
-        hmag.Fill(mag[i]);
+//     TH1F hmag("HistMag", "Mag", 19, 0, 100);
+//     for (int i=0; i<mag.GetSize(); i++)
+//         hmag.Fill(mag[i]);
     
     //
@@ -1040,4 +1039,5 @@
     stars.Sort(); // Sort by magnitude
 
+#ifdef EXPERT
     TString str = "data/tracking_";
     str += fSao->GetMjd();
@@ -1045,4 +1045,5 @@
 
     ofstream fout(str);
+#endif
 
     TArrayF x, y, mag;
@@ -1071,5 +1072,5 @@
             y.AddAt(dpos.Y(), idx);
             mag.AddAt(spot->GetMag()/star->GetMag(), idx);
-
+#ifdef EXPERT
             if (fout) {
 		fout << spot->GetX() << " " 
@@ -1081,4 +1082,5 @@
                 fout << x[idx] << " " << y[idx] << " " << mag[idx] << endl;
 	    }
+#endif
         }
     }  
@@ -1292,10 +1294,11 @@
     if (!fWritePictures->IsEntryEnabled(IDM_kStart) &&
         (!(n%fWrtRate) || fWriteType->IsEntryChecked(IDM_kOnce)))
-    {
+    {     
+ 
         if (fFileType->IsEntryChecked(IDM_kPNG))
-            Writer::Png("pix/file", img, tm);
+            Writer::Png("pix/file", img, tm, fCRaDec->GetCoordinates());
 	
         if (fFileType->IsEntryChecked(IDM_kPPM))
-            Writer::Ppm("pix/file", img, tm);
+            Writer::Ppm("pix/file", img, tm, fCRaDec->GetCoordinates());
 	
         if (fWriteType->IsEntryChecked(IDM_kOnce))
