Fixed a few bugs in chain poset ideals, improved code, generalized the stitching coroutines.