Account for min and max in discrete modes. Updated doxygen. Converted to NSInteger, NSUInteger
in class interface.