add minSplits for WholeTextFiles
refine Java API and comments