add debug_print() to material
update examples to new composite
update tests