Tested text splitter

Using codes in the last part of DP.R to get the bags and the splitting
results.