Ported oxygen code into pristine, hindcast copy

Ported a lot of code into the pristine hindcast copy. Likely needs a lot
of debugging