got through most bugs, still some runtime errors in ws and sig_utils (spectral_radius)