Example of mulfifunctional detector with arbitary data

Hey all,
I posted a while ago about an error I am getting in my multifunctional detector setup that has yet to be resolved. To try and bypass identifying an error would anyone be able to instead provide a script files for making a multifunctional detector for dosimetry, capable of working with arbitrary data as input from a materials_indices list.
EG: taking example RE02 and changing it to use G4PhantomParameterisation instead of G4VNestedParameterisation.
Help would really be appreciated here because I cannot understand what I am doing wrong
Thank you all