reorganization of script
add function make_der_files()
change function make_index(): add processing with anchors
small changes for porting