What are the U-shaped aluminum pieces for?

The small horseshoe-shaped aluminum pieces are shims. You can use them if necessary under the post flange, to make the post vertical on an uneven mounting surface.