Fixed texture loading functions. Switch to using std::string objects
for storing material information (name, texture name, etc.)