Moved more of the calculation into the mandel() function, resulting in performace improvement.
Changed some variable names.