Tested and finished addip range ban

I have added some comments for things that could be improved.