refactored alternateColors, added color functions

- refactored alternateColors so that it loops through the color channels
- added getColorChannel() and insertIntoColor() as part of that
refactoring
- deleted some explanatory comments to clean things up