correct scope of folds.err.rates variable; print optimal k; additional comments