Make the multifile object public; in addition, fix it to work and also a small bug in simulation.cpp that caused crashes on dead objects