updated project file for xcode5
use properties
shorter code / better readable distance calculation / comparisation