Make sure folds are traversed in sorted order
Make PredefinedSplit more robust
Documentation improvements
Fix tests