Fixed so if the last word is a frozen word that was keys can be duplicated and have an end key added. Also set gap where starting a sentence is always capitalized in case the lower_hash is used to start the sentence.