MinMax - Final version (so far), corrected for min. Works!
Grid.density.limits - numints as an input variable, ivalid cell count