cleaned/updated polygon class a bit.