added a console log file to debut calculated distances