throw error on empty input
don't truncate lines without a newline
reduce memory usage

only allocate the memory needed to store a word to reduce
the amount of wasted memory
fix inconsistent style
change README to markdown
modify usage to match manpage
initial commit