edited a few sections, added a figure: fig:simulation