finished code adding category min/max parameters to dmi. ready for testing.