Fix minor issues in tutorial docs and plot_dpa_resid example script