script to add xsec to cls values, also some refactoring moving dataset re into common place