Mostly fixed world model
Fixed most seg faults in gate_detector