'var.ds' removed and 'varDS' added. 'meanDS' amended. The changes was to ensure an 'NA' is returned when the inut vector is invalid instead of stopping.