renamed intput doCV to nHP. the new parameter decided how many crossvalidations to do for the hyper parameter sweep