Added Tracy's cal_pressure code; fixed compilation bugs