add app_func.sh run_template.sh; mv several funcs to func.sh. update READEME.md