Added possibility to show legend on plot (through checkbox)

Greatly improved beam recognition.