fix documentation
implement two range queries