Made a few changes to polygon class (including changing "polygons" to "polygon", which i think is correct.)