Mask for smr and wlen implemented separately.

Big changes to window_step(). Removed setParams().