Update cvModel.R

Fixed some minor issues with cvModel, added some data quality checks.