Added a progress bar, fixed exiting and updating of FLTK correctly, so it now kills all threads upon exit (still not too elegant). Optimized recursive intensity calculation algorithm