implementing cmd-options in main(); better functions for check-script-search