Fixed initial radius computation in randsrc and cleaned debug code.