passing params from the cmd line: added; refactored; merged into single script;