Index: src/dsk_mgr.c
===================================================================
--- src/dsk_mgr.c	(revision 107)
+++ src/dsk_mgr.c	(working copy)
@@ -189,7 +189,7 @@
 
 
   g_print("rpc_status=%i\n",rpc_status);
-  g_print("a\n");
+
   if(rpc_status!=200){
     g_print("Problem with XMLRPC communication\n");
     gdk_pixbuf_unref(pixbuf);
@@ -201,7 +201,7 @@
     g_object_unref(soup_session);
     return FALSE;
   }
-  g_print("b\n");
+
   rpc_response=soup_xmlrpc_message_parse_response (SOUP_XMLRPC_MESSAGE (msg));
   if (!rpc_response) {
     g_print("Could not parse XMLRPC response\n");
@@ -215,7 +215,7 @@
     return FALSE;
   }
 
-  g_print("c\n");
+
   value = soup_xmlrpc_response_get_value (rpc_response);
   if (!value) {
     g_print("No response value in XMLRPC response\n");
@@ -237,15 +237,13 @@
   if(!soup_xmlrpc_value_get_boolean(value,bo)){
     g_print("not able to get the boolean\n");
   }
-  g_print("d\n");
+
   if(*bo==TRUE){
     g_print("Send pic:OK\n");
   } else {
     g_print("Sending pic: FAILED\n");
   }
 
-  g_print("e\n");
-
   /* Free allocated resources and return TRUE which means
    * that the operation was succesful */
 
@@ -390,7 +388,7 @@
 
   fh=fopen(TMP_POSITIONS_FILE, "a");
   if(fh==NULL){
-    g_print("Problem appending to a file\n");
+    g_print( "Problem appending to  %s: %s\n", TMP_POSITIONS_FILE,strerror( errno ) );
     return;
   }
 
@@ -407,13 +405,13 @@
 }
 
 void load_positions_from_file(){
-  g_print("Loading data from file\n");
+  g_print("Loading data from file...\n");
   FILE * fh;
   char line [128];
 
   fh=fopen(TMP_POSITIONS_FILE, "r");
   if(fh==NULL){
-    g_print("Problem reading file\n");
+    g_print( "Problem reading %s: %s\n", TMP_POSITIONS_FILE,strerror( errno ) );
     return;
   }
   
@@ -437,7 +435,10 @@
     gps_positions=g_slist_prepend(gps_positions,(gpointer) cur_info);
   }
   fclose(fh);
-  remove(TMP_POSITIONS_FILE);
+
+  if(unlink(TMP_POSITIONS_FILE)!=0){
+    g_print( "Error remove file %s: %s\n",TMP_POSITIONS_FILE, strerror( errno ) );
+  } else {g_print("yo, removed %s\n",TMP_POSITIONS_FILE);}
 }
 
 
@@ -769,7 +770,6 @@
 
 
       if(*b==TRUE){
-	g_print("OK\n");
 	gps_positions=g_slist_remove(gps_positions, cur_info);
 	g_free(cur_info);
       } else {
