Include carriage return in white space characters.

Program would incorrectly count a carriage return as a one
character word since it was separated by two new lines at the
end of some files.
Protect against buffer overrun.

In case a word had a length more than the maximum allowed
the program would write unchecked at a position in the
words array past the declared length.
Minor style change.