Indexized w2, w3 and w4 in rmsd.sh