Cleaned up merged version of model_cem.f90 a bit.