Always send back list.
Segmentation fault corrected.
Distinguish between createMaterial and addMaterial. Add getComposition.