Added mtl generator for main method and model instancing.