Cleaned up createColorArray code. Closes #27.