My mesh twists when I move a bone I made a character and skinned and rigged him, and used automatic weights. When I move the upper bone in arm the mesh gets twisted and weird. 



Here is the link to download it
When a real human arm moves up, this is in this way :

Not in this way :

I think this is the main problem here.