Separated materials data from app.
Implemented data retrieval from file.