Splits all the data into its correct sections. Reorganizes everything.