added last code updates from comp; completely redid gamepad controls.