updated palette.pl to output in correct format.