replaced tuples with the more general 'group'
replaced tuples and pair with group
added tests for group
changed range to more efficent implementation
added tests for the new range
added documentation for the new range