Index: app/src/tok/tok
===================================================================
--- app/src/tok/tok	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/tok/tok	(revision 246900abc92b7d822ca17bd69aeb06d2b30db588)
@@ -7,17 +7,17 @@
 my $help;
 
-my $configfile1=".../../conf/tok.conf";
-my $configfile2="../conf/tok.conf";
+my $systemconfigfile='/usr/local/etc/utt/tok.conf';
+my $userconfigfile="$ENV{'HOME'}/.utt/tok.conf";
 
 #read configuration files###########################
 my $file;
-foreach $file ($configfile1, $configfile2){
+foreach $file ($systemconfigfile, $userconfigfile){
 	if(open(CONFIG, $configfile1)){
 		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 "interactive")or($name eq "i")){
@@ -27,5 +27,5 @@
 				$help=1;
     			}
-		} 
+		}
 		close CONFIG;
 	}
@@ -56,5 +56,5 @@
 while(<>)
 {
-    1 while  
+    1 while
 	/ [[:alpha:]]+   (?{seg('W',$&)})
 	| \d+            (?{seg('N',$&)})
@@ -96,3 +96,2 @@
     $offset += $len;
 }
-
