add `range` function and updated README