Fixes distance formula, adds markers with info boxes