sparse matrices in mask_proportion and mask_threshold filled in
small changes; caught error in calculating logdet (using wrong covariance matrix)