add functions and change the XML loading functions.
Fix the sentence tokenize bug.