Revise connec_boundaries and add write-ups