removed do_several_segments since choose_segment is now a function.
Removed new_xyz from setup_and_return_demofile.