update analysis inputs and format output better for stack plotter