minor changes to make saving interval more sensible, added cpi comparison plotting routine