updated notebook and new dispersion run function