min/max now accepts array of values, or a single value. Also added a better demo