more cleanup. added tools.irange.