added more range tests and fixed some range docs