add debug flag for plotting. not passed in yet
pass in debug flag
fix figures for debug graphs
reduce endval for now