tuples to single coords
messy, but working
comment
demo stuff
fixed grad and hess functions, reverted back to vectors instead of x,y