Study of The Reaction Kp -> K pion p at 30 and 50 GeV/c: Description of the Apparatus and Amplitude Analysis of the K pion System.