Bugfixes

Fixed a bug in the marching cubes algorithm and altered cmake slightly.