Added legends. Closes #59