Function 'range.ds' added and function 'histogram.ds' amended.