Add connectionGetExact function (fixes #9)

I have integrated and tested a connectionGetExact function and followed the advice you gave about naming and internalizing the recursion.