added sentence splitting and tokenization