Prime Minister Modi has completed a major foreign policy tour and returned to India having upgraded key bilateral relationships.