Move away from scanf and add a test for palette importing and exporting.