added log message
fixed double specifier to be f, not d
distance limited to two decimal places