Fixed an issue when using renamer multiple times: mainList wasn't cleared after renaming.
Updated remove functionality so that a range of items can be removed.