Wrapped up MonteCarlo, Wrote rearrange

Debugged and finished Monte Carlo part of the projection code. Wrote
the rearrange code, which takes all the outputs and writes a single
file with all the data in the appropriate order. Also included a test
code that prints out the resulting combined file.