made find_pts_grad_descent faster by exiting when dpos is close to 0, abstracted calc_G from section in main.m, started on plotting features