added removeRange, and some basic unit tests