Studies in quantum mechanical collisions with special reference to scattering and photoproduction of pions from nuclei