First working version of unfold script.

There are still a few tweaks needed but it works when unfolding MC
spectrum.