Made a few small changes to mesh.d