Studies in photoproduction of charged pions from complex nuclei using distorted wave impulse approximation