added deleteMotion, fixed a bug removeModel doesn't remove engine