add option for generating scripts
Merge pull request #11 from altsai/gen_script_option

add option for generating scripts