Alignment segmentation

New threshold for segmentation to fix #27, which should automatically fix #23.