extract generating wrapper script, update #5
allow generating formatted binary wrappers, extract comon parts of wrapper scripts testing, fix #5