PSX gains 115 points to close at 40,191 points