Added a couple of fixes for the situation where the classification function throws an error -- will just display a warning and replace those results with empty matrices and NaNs, at least for now.