Added all pieces to calculate the fluxes in and out of the mantle.
Merge branch 'master' of https://github.com/cider-team-mercury/mercury
Fix bugs related to case mismatch, generally reformatted the code.