Fixed mapping of labels and colors.

Now truly going through the dictionaries instead of trusting that the elements
will be in the same order.
Merge pull request #3 from luisibanez/master

Fixed mapping of labels and colors.