check_kfold function

Check that kfold is an integer of reasonable size