fixed bug in avg_region
Merge branch 'master' of github.com:mattvenn/cad