Add legend

Adds a legend to the "Targets and Markers" example, with the new framework