Add legend and inColor to UI controls
Add color to legend; fix addition problem
Fix #6: Double first pattern