counter > value
Some corrections for EWMA and tests
Add g64