Added setRange calls. Changed min max call to qMin qMax.
Added range extend method.
Change range extend to work on measures too.