Added synchroniseTS.R and theissen.R