Wrong indentation of block in "write_materials" method
Added test project to load models generated by exporter