Refactored a whole lot and added more palettes