Modify variable and function names in the Range filter to more closely match the terminology of intervals in mathematics; Add inline documentation