Huge ameliorations of the function addPoint and createPoly

Now a newly created poly is really empty (and not just a point with (0,0)) so the addPoint have to check if the polygon is empty before trying to modify it