more work on main function read2multirunRA to make new more space-efficient version work properly.