STPM - L-Packets and Endoscopy for p-Adic Groups