Improved stuff
Added minimum and maximum support. Fixed bug: integral surface was still
being shown after closing the calculate frame
Fixed bug: not repainting after changing FillFunctionIndex