escape sdf-replacement per compound, add eucl distance (unused)
getSelected() now returns the last selected elem