scia_lv1_patch_mds: some more work on the limb memory and code clean-ups