Refactored Mesh class - now it is possible to handle complex meshes with materials.