Basic stats processing
Tests for stat smooth.
And fix default scale behaviour