do not use undefined locationspecs or those at 0/0
fix distance calculation (was km but should be meters)
revert distance calc change, problem seems to be somewhere else
additional logging stuff
Release v1.2.3