Removed console logs and fixed tabs
Fixed tabs again
Rewrote RangeController.splice in terms of swap and renamed one of swap's arguments

RangeController.splice might not be necessary