Here is a draft copy of rev 2 template. It creates a new function ..Call_script(int name) that allows calling scripts from within a script and cleans up a few areas by taking user modified code areas and isolating them to separate functions.
I. e. Script_name_map() was created to let the user map his function names to the function call. This code used to be buried within Run_script(). Now it is called by Run_script();
Also, Reset_auto_flags() contains code that used to be buried within Reset_scripts(); Reset_scripts now just calls this function.