RMSD calculation added