Index: fact/FADctrl/FAD.cc
===================================================================
--- fact/FADctrl/FAD.cc	(revision 11204)
+++ fact/FADctrl/FAD.cc	(revision 11205)
@@ -138,5 +138,5 @@
   // Shell command
   if (*Command == '.') {
-    system(Command+1);
+    if (system(Command+1) == -1) PrintMessage("Error with system() call\n");
     return;
   }
@@ -1216,5 +1216,5 @@
 bool FAD::ConvertToRange(string String, struct FAD::Range &R) {
 
-  int N, M;
+  int N=0, M=0;
 
   // Full range
Index: fact/FADctrl/FAD.h
===================================================================
--- fact/FADctrl/FAD.h	(revision 11204)
+++ fact/FADctrl/FAD.h	(revision 11205)
@@ -16,4 +16,5 @@
 #include <dirent.h>
 #include <sys/time.h>
+#include <sys/stat.h>
 #include <limits>
 #include <fcntl.h>
Index: fact/FADctrl/FADBoard.cc
===================================================================
--- fact/FADctrl/FADBoard.cc	(revision 11204)
+++ fact/FADctrl/FADBoard.cc	(revision 11205)
@@ -513,5 +513,4 @@
 	  for (unsigned int i=0; i<NDAC; i++) Status.DAC[i] = ntohs(Header->dac[i]);
 
-	  short Buf;
 	  for (unsigned int Chip=0; Chip<NChips; Chip++) {
 		// Extract trigger cells	  
@@ -522,9 +521,9 @@
 		  Status.ROI[Chip][Chan] = ntohs(Channel[Chip+NChips*Chan]->roi);
 
-		  // Extract ADC data (stored in 12 bit signed twis complement with out-of-range-bit and leading zeroes)
-		  for (int i=0; i<Status.ROI[Chip][Chan]; i++) {
-			  Buf = (Channel[Chip+NChips*Chan]->adc_data[i]);
-			  (Buf <<= 4) >>= 4;			//delete the sign-bit by shifting left and shift back
-			  Data[Chip][Chan][i] = Buf;					
+		  // Extract ADC data (stored as signed short)
+		  // FADs ADC is 12 bit (values -2048 .. 2047)
+		  // negative/positive overflow is -2049 / +2048
+		  for (int i=0; i<Status.ROI[Chip][Chan]; i++) {			  
+			Data[Chip][Chan][i] = Channel[Chip+NChips*Chan]->adc_data[i];
 		  }
 		}
Index: fact/FADctrl/FADctrl.cc
===================================================================
--- fact/FADctrl/FADctrl.cc	(revision 11204)
+++ fact/FADctrl/FADctrl.cc	(revision 11205)
@@ -28,5 +28,7 @@
   read_history(READLINE_HIST_FILE.c_str());
 
-  system("clear");
+  if (system("clear") == -1) {
+	printf("Error with system() call\n");
+  }
   printf("\n*** FADctrl (built %s, %s, revision %s) *** \n\n",__DATE__, __TIME__, REVISION);
 
