Why the mesh is twisting when base bone is rotated?
That deformation occurs because you didn't add weights in weight paint mode.

Select the armature and change to pose mode
In pose mode with the armature selected click the mesh
Change to weight paint mode
Select bone by bone and add vertex weight


Related:
Vertex Weight Issues