Peripheral structure of 3-manifolds