fix
load joint distributions correctly
load and save distance distributions correctly
fix distance dependent bin selection