Development of Pd Catalyzed Amidations & Applications to the Synthesis of Heterocycles