Fixed bug in the way -c, -w, and -l options are processed

Specifying one of -c, -w, or -l should not turn on the others.
This must have been a thinko in the original code.
Don't forget to add last newline when reading from stdin

I introduced this bug a couple of days ago.