Changes
Revert "Changes"

This reverts commit 076bc05af973f14b2054f19711a2a7552d8614e0.
Almost done changing script

I'm nearly done changing the script, except for the analysis of extremes
which I'm having trouble with. I don't quite understand the function
that is being used.