Updates to supplementary scripts and main script.