p paramater is now set only once, before running the experiment.
added uri's fixes to ass1.tex