added option for the loaded data to have the class matrix, not only dgCMatrix