Added surface normals to the mesh generation. Still need corrections for the crashes