did some work on the mesh class and creation of a regular grid. not working at the moment