Fixes #11

We have had to replace the Max word Length constant with a variable and
clamp it to the text length.
We now throw an exception if the content is empty otherwise we get all
sorts of errors.