fixed bug in PointsToEdge . getSubsFromEdge, added some debug code