Added support for range queries including documentation and tests.

Refactored class modules to split out the main query class and the DTO-type objects