Added range parsing to parameters
If a range is detected then illegal values are removed from the final array of ranges and integers.