changed data file to plot if called
Added 'sum' for affine expressions, is speed an issue?