moved functions form q1d_joerg_merge to q1d_step
fixed path problem