Added qr_illcond().
Keep robot specific functions separately.
Rewritten preview window generation.