Can anyone help me make sense of the whole of Dogville?

The first hour I was absolutely in love with the film and its setting (shades of Thornton Wilder's Our Town.)

But the ending left me confused and wondering what the point von Trier was trying to make.

They talk of forgiveness, arrogance, being honest and open, and --- then all hell comes at the end. 

Help, please.

Sara