restructured DWC, renamed N_k_attempts, added header