Added customizable legend labels

As raised in Issue #39