Improved interval functionality

Added support for exlusive ranges, negative values, and floats.
Merge pull request #1 from arcticfalcon/master

Improved interval functionality