model.cpp added .c_str() to be compatible with macs and fixed world position