Simulation works again. All with looping over energy levels and materials. Also some segemented phantom is included.