Clean up the mandelbrot code a bit and remove dead code