Added segment length config to arc expansion and some minor bug fixes.