Updated the polygon script to also calculate the center of the polygon. This was a very nice and easy way of doing this :-)