fixed bug in polygons_class and added sws file