rename find_wa_edges to find_bin_edges, add resample_spec function and alter find_cont