got the brownian1d function working. So I can do brownian motion in 1d now.