Started code to write orders and galaxies to disk