mem mgnt of chi
fixed specification of drc_order, default 20, + update_chi
fixed update_clocks with division factor 2, sampling chi correctly