Added palette functions (\pal1{}).
Added palette editing.