made the filname argument more flexible, so that now every path is possible, the material file has to be in the same directory, like the obj file