made code more comparable to matlab

now have 10 by 2 matrix and also plotting initial values