Fix check for whether ellipsis is needed
Add new truncateLastWord option with slop factor
Remove debugging hints
Add tests for truncateLastWord option