material instanciated

static methods of Material class and all of their calls changed