Cleaned up keyboard callback.
Adjusted style to match other files.
Included check in marching cubes for degenerate triangles.