modified to only include one gaussian beam beyond the edge of any given ray family.