add min distance check
Merge pull request #3 from tobiasandersson/master

add min distance check