If you haven't got the rig's knees bent, this can cause problems of movement in undesired directions. The free rigging tutorial video on this site explains it quite well, far better than I can at this hour of the day. It's only about 6MB, well worth downloading. You can get it here. S.