Gimbal lock causing smooth rotational issues

Ok so an update. Ive been able to completely ignore all code and the left right is now done entirely via the blueprint section posted in the leftright.png above. South rotations are still off though! D: