Changed the setupPalette function from being implementation jargon to public, documented and called setupGrayscalePalette.

Also changed all references from `setupPalette()` to `setupGrayscalePalette()`.