Updated CMSdata, preparedata script