- cleaned-up script, added some comments, made variable names consistent with PISM.