Added legendtxt option and examples to urfunction