A speed enhancement in reformatting data

Added an extra XS module to handle regigging of compound data. Roughly halves execution time.