enforce hierarchy-sentences to end appropriately.
Merge pull request #1102 from ontohub/1100-fix_tree_generation

enforce hierarchy-sentences to end appropriately.