clean up the code; modify the median for apcluster
correct the mapping from IBS to central object samples