add check arguments for recursive function script
removed unnesecary spaces
Merge remote branch 'origin/rec_into_main' into rec_into_main