First-Principles Study Of Pbte: From Exotic Superconductivity To Emergent Ferroelectricity