Added the framework for a control GUI and prevented a crash from removing a mass body.