updated search with calculations with dir and dist
Merge branch 'master' of https://github.com/qimingfang/fling-server