updated csvtoset to take a class vector