added script which we use to generate input files for CHT