added support to objects with more than one material plus cleanup