added geolocation distance condition for BADs (untested)
added comments for clarity
Merge pull request #1 from dubbl/added_geoloc

Added geoloc