Index: app/src/kot/kot
===================================================================
--- app/src/kot/kot	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/kot/kot	(revision 246900abc92b7d822ca17bd69aeb06d2b30db588)
@@ -8,17 +8,17 @@
 my $spaces=0;
 
-my $configfile1="../../conf/kot.conf";
-my $configfile2="../conf/kot.conf";
+my $systemconfigfile='/usr/local/etc/utt/kot.conf';
+my $userconfigfile="$ENV{'HOME'}/.utt/kot.conf";
 
 #read configuration files###########################
 my $file;
-foreach $file ($configfile1, $configfile2){
+foreach $file ($systemconfigfile, $userconfigfile){
   if(open(CONFIG, $file)){
   	while (<CONFIG>) {
-  		chomp;                  
-      		s/#.*//;                
-	      	s/^\s+//;               
-      		s/\s+$//;               
-    		next unless length;     
+  		chomp;
+      		s/#.*//;
+	      	s/^\s+//;
+      		s/\s+$//;
+    		next unless length;
     		my ($name, $value) = split(/\s*=\s*/, $_, 2);
     		if(($name eq "gap-fill")or($name eq "g")){
@@ -31,6 +31,6 @@
 			$help=1;
     		}
-    	
-	} 
+
+	}
   	close CONFIG;
   }
@@ -49,5 +49,5 @@
 Options:
    --gap-fill -g                  Help.
-   --spaces -r                    
+   --spaces -r
    --define=FILE                  Read macrodefinitions from FILE.
    --flex-template=FILE           Read flex code template from FILE.
@@ -71,5 +71,5 @@
 {
     my ($start,$len,$type,$form) = /^\s*(\d+)\s+(\d+)\s+(\S+)\s+(\S+)/;
-    
+
     if($start > $prevend)
     {
@@ -78,5 +78,5 @@
 
     $prevend=$start+$len;
-    
+
     next if $len==0;# || $form eq "*";
 
@@ -94,6 +94,2 @@
     print $form;
 }
-
-#print $gap_fill;
-
-# print "\n";
