added bwRegionWrap.sh from my notes. Superficially tested. Once