Component finder function now returns a list containing the start and end-points of each component