init clean
protect templates
remove cp_array_i_sort.F
improved script