added in mesh generator, still debugging
constructing grid seems to work