Package distance calc fixed
output added