added checking for distance between new and old location. removed delegate (part 1). refactor
removed self.delegate (part 2)
Merge pull request #1 from ashmaliy/master

added checking for distance between new and old location. refactor