Added Legend option to reference layers.

Closes #25