Lots of updates to handle ensemble combinations of libsvm