Improved interval functionality

Added support for exlusive ranges, negative values, and floats.