changes to nuclear ramsey and new script MAR