Added labeldecode

Added a labeldecode function to map the discrete labels back to the original label.