Rotation moved to the layer level
Many small modifications.