Simplified code.

Change the code structure. But no mandelbrot set is drawn yet.
Documented the header file of mandelbrot.h.

And fixed a small but important bug.