added tolarance to distance'
added a global variable tolarance, plus some small tweaks
change chunksize to tenth of seconds + some small changes
fixed merge conflict
using distance now and have print for debugging
indentation
changed the chunksize to tenth of second, reduced tolarance to 1
fixed conflict
Merge pull request #13 from surette/distance-function

Distance function