change hdf5 output format from get_divs
fix-mode support in sdm
sdm: support new file format for cv

prediction is a little more complicated, don't worry about it for now