First working version
Refined photometry now working

Now, the mesh of the region to measure can be refined using nRefine.
Resulsts are now within ~2% of qphot's ones.
Output code added

If logFile is defined, an output of the results is saved to a file.
Now, phot returns two arrays, one with the results of the photometry
and another one with the sky background parameters.
Commented testing function