added max/min support for number fields and added max and min values to risk fields