reorganisation of script
add function make_der_files()
change function make_index(): add processing anhors
small changes for porting