Added palette to ef9345, and some cleanup (nw)
By request, nw