Fleshed out runMlMethod and  made function that splits up folds