Bugs corrected

If the options -k and -f where missing the programs terminated with errors.
Now the default value for k is 1 and if no file is stated on the command line
the input is read from stdin.