code created until actual processing
-ks and -kf with files shorter than 8192 implemented