move avgScale to core
clean up
dimension
minor imporvements
update comments
shorter avgScale comment
Merge pull request #58 from diagrams/avg-scale

Avg scale