minor tweaks on paper, added forward euler