stat.c and minmax.c complete

only need to correct for too few or too many arguments if neccesary.